package xyz.funnyboy.ggkt.model.vod;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import xyz.funnyboy.ggkt.model.base.BaseEntity;

import java.util.Date;

@Data
@ApiModel(description = "VideoVisitor")
@TableName("video_visitor")
public class VideoVisitor extends BaseEntity
{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程id")
    @TableField("course_id")
    private Long courseId;

    @ApiModelProperty(value = "视频id")
    @TableField("video_id")
    private Long videoId;

    @ApiModelProperty(value = "来访者用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "进入时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("join_time")
    private Date joinTime;

    @ApiModelProperty(value = "离开的时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("leave_time")
    private Date leaveTime;

    @ApiModelProperty(value = "用户停留的时间(单位：秒)")
    @TableField("duration")
    private Long duration;

}
